package 笔试.携程;

import java.util.*;

/**
 * @author:谢君臣
 * @Date:2021/6/10-18:58
 * @version:1.0
 * @function:
 */
public class xc03 {
    public static void main(String[] args) {
        Scanner in  = new Scanner(System.in);
        String word = in.nextLine();
        HashMap<String,String> p = new HashMap<>();
        p.put("anti","against");
        p.put("post","after");
        p.put("pre","brfore");
        p.put("re","again");
        p.put("un","not");
        HashMap<String,String>q = new HashMap<>();
        q.put("er","one who");
        q.put("ing","to actively");
        q.put("ize","change into");
        q.put("tion","the process of");
        q.put("ful","full of");
        System.out.println(splitWord(word, p, q));
    }

    private static String splitWord(String word, HashMap<String, String> p, HashMap<String, String> q) {
        StringBuilder star = new StringBuilder();
        StringBuilder end = new StringBuilder();
        int j =2;
        while (j<=4&&j<=word.length()){
            if (p.containsKey(word.substring(0,j))){
                String pre = word.substring(0,j);
                word = word.substring(j);
                star.append(p.get(pre)).append(" ");
                j=2;
            }else {
                j++;
            }
        }
        j=2;
        while (j<=4&&j<=word.length()){
            if (q.containsKey(word.substring(word.length()-j))){
                String pre = word.substring(word.length()-j);
                word = word.substring(0,word.length()-j);
                end.append(q.get(pre)).append(" ");
                j=2;
            }else {
                j++;
            }
        }
        return star.append(end).append(word).toString();
    }
}
